<!DOCTYPE html>
<html>
	<head>
    	<title>{{ pageTitle }} - CTR4ever</title>
		<link rel="shortcut icon" href="media/img/icon.png" />
		<meta name="Description" content="{{ meta_description }}" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width" />
		<link rel="stylesheet" type="text/css" href="media/css/smoothness/jquery-ui-1.8.16.custom.css" />
		<link rel="stylesheet" type="text/css" href="media/css/style.css" />
		<link rel="stylesheet" type="text/css" href="media/shadowbox/shadowbox.css" />
		<!--[if lte IE 6]>
		<link rel="stylesheet" type="text/css" href="media/css/styleIE6.css" />
		<![endif]-->
		<!--[if lte IE 7]>
		<link rel="stylesheet" type="text/css" href="media/css/styleIE7.css" />
		<script type="text/javascript" src="media/js/html5-ie.js"></script>
		<![endif]-->
	{% block additionalHeaders %}
	{% endblock %}
    </head>
    <body>
		<div id="main">
			<header>
				<a id="logo" href="index.php" title="Home"></a>
				<div id="ariane">
					{% for item in ariane %}
					&nbsp;&raquo;&nbsp;<a href="{{ item.href }}" title="{{ item.name }}">{{ item.name }}</a>
					{% endfor %}
				</div>
				<div id="slogan">
					The site of all records on<br/>
					Crash Team Racing trial time !
				</div>
				<div id="search">
<!--					<form method="get" class="searchform" action="index.php">-->
<!--						<div class="absoluteLabel"> -->
<!--							<label for="searchInput">Type here</label> -->
<!--							<input type="text" value="" name="searchInput" id="searchInput" />-->
<!--						</div>-->
<!--						<input type="submit" id="searchSubmit" value="GO" />-->
<!--					</form>-->
				</div>
			</header>
			<div id="menu">
				<nav>
				{% block menu %}
					<div class="menuItem">						
					{% if isLogged %}
						<div class="menuCategory" id="myAccount"></div>
						<ul>
							<li>
								<a href="profile.php?pid={{userId}}" title="">Me: {{user}}</a>
							</li>
							<li>
								<a href="submit.php" title="">Submit a record</a>
							</li>
							<li>
								<a href="logout.php" title="logout">Logout</a>
							</li>
							<li>
								(<a href="adm_records.php" title="logout">Times validation</a>)
							</li>
							{% if isAdmin %}
							<li>
								<a href="adm_home.php" title="Admin">Admin ctr4ever</a>
							</li>
							{% endif %}
						</ul>	
					{% else %}
						<div class="menuCategory" id="login"></div>
						<form class="formulaire" id="loginForm" action="login.php" method="post">
							<div class="absoluteLabel"> 
								<label for="id_nickname_login">Nickname</label> 
								<input id="id_nickname_login" type="text" name="nickname" maxlength="30" value="{{valueNickname_login}}" />
							</div> 
							<div class="absoluteLabel"> 
								<label for="id_password_login">Password</label> 
								<input id="id_password_login" type="password" name="password" maxlength="30" value="{{valuePassword_login}}" />
							</div> 
							<input id="submitLogin" type="submit" name="submit_login" value="Login" /> 
							{% if loginError %}<div style='error'>{{loginError }}</div>{% endif %}
						</form>
                        <a href="register.php">Register</a>
					{% endif %}
					</div>
					<div class="menuItem">
						<div class="menuCategory" id="ranking"></div>
						<ul>
							<li>
								<a href="ranking.php" title="">Track records</a>
							</li>
							<li>
								<a href="total_times.php?penta=on" title="">Game ranking</a>
							</li>
							<li>
								<a href="wr.php" title="WR">WR</a>
							</li>
							<li>
								<a href="players.php" title="">(Player list)</a>
							</li>
						</ul>
					</div>
					<div class="menuItem">
						<div class="menuCategory" id="tips"></div>
						<ul>
							<li>
								<a href="http://ctr4ever.joora.fr/ctrwiki/" title="">The wiki</a>
							</li>
							<li>
								<a href="http://ctrgamers.wikia.com/wiki/CTRGamers_Wiki" title="">ctrgamers wikia</a>
							</li>
							<!--<li>
								<a href="" title="">Videos</a>
							</li>-->
						</ul>
					</div>
					<div class="menuItem">
						<div class="menuCategory" id="partners"></div>
					</div>
				{% endblock %}
				</nav>
			</div>
			<div id="content">
			<h1>
				{% block title %}{{ pageTitle }}{% endblock %}
			</h1>
			{% block content %}				
			{% endblock %}
			</div>
			<!--<ul id="menu">
				<li><a href="home.html">Home</a></li>
				<li><a href="account.html">account</a></li>
					<ul id="account">
					<li><a href="myinformations.html">MyInformations</a></li>
					<li><a href="postrecord.html">"Postarecord"</a></li>
					<li><a href="login.inc.html.html">Login</a></li>
					<li><a href="register.html">Register</a></li>
				</ul>
				<li><a href="">records</a></li>
					<ul id="records">
					<li><a href="recordlist.html">Recordlist</a></li>
					
				</ul>
				<li><a href="">ranking</a></li>
				<ul id="ranking">
					<li><a href="playersrank.html">playersrank</a></li>
				<ul id="playersrank">	
					<li><a href="playersrankrace.html">"playersrankbyrace"</a></li>
					<li><a href="playersrankmode.html">playersrankbymode</a></li>
				</ul>
					<li><a href="countryrank.html">countryrank</a></li>
				</ul>
				<li><a href="">members</a></li>
				<ul id="members">
					<li><a href="memberlist.html">Memberlist</a></li>
					<ul id="members">
					<li><a href="listrecordmember.html">"listrecordmember"</a></li>
					</ul>
					<li><a href="mashupmembers.html">mashup</a></li>
				</ul>
				<li><a href="aboutctr.html">About CTR</a></li>
				<li><a href="partners.html">Partners-Links</a></li>
				<li><a href="">moderation</a></li>
				<ul id="moderation">
					<li><a href="validproof.html">validproof</a></li>
					<li><a href="eraserecord.html">"Postarecord"</a></li>
					<li><a href="banmember.html">banmemberRegister</a></li>
					<li><a href="moderatemember.html">moderatemember</a></li>
				</ul>
				<li><a href="">Forum</a></li>
			</ul>-->
			
		</div>
		<footer>
		{% block footer %}
			<div class="inner">
				<!--<div id="xiti-logo" style="float:left"> -->
					<script type="text/javascript" src="http://widgets.amung.us/classic.js"></script>
					<script type="text/javascript">WAU_classic('q3z285s2gdn4')</script> 
					
					<a href="http://www.xiti.com/xiti.asp?s=386714" title="WebAnalytics" target="_top"> 
						<script type="text/javascript"> 
							<!--
							Xt_param = 's=386714&p=';
							try {Xt_r = top.document.referrer;}
							catch(e) {Xt_r = document.referrer; }
							Xt_h = new Date();
							Xt_i = '<img width="80" height="15" border="0" ';
							Xt_i += 'src="http://logv9.xiti.com/g.xiti?'+Xt_param;
							Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
							if(parseFloat(navigator.appVersion)>=4)
							{Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
							document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'">');
							//-->
						</script> 
						<noscript> 
							<div id="xiti-logo-noscript">
								<img width="80" height="15" src="http://logv9.xiti.com/g.xiti?s=386714&amp;p=&amp;" alt="WebAnalytics" />
							</div>
						</noscript> 
					</a> 
				<!--</div> -->
			 
				 <!-- http://www.tynt.com/ script, stats sur le contenu copié --> 
				 <script type="text/javascript">tyntVariables = {"ap":"Lire la suite: "};</script> <script type="text/javascript" src="http://tcr.tynt.com/javascripts/Tracer.js?user=aYDw-sfCKr34zVadbiUt4I&amp;s=120&amp;a=0&amp;lang=fr"></script>
			</div> 
		{%endblock %}
		</footer>
		<script type="text/javascript" src="media/js/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="media/js/jquery-ui-1.8.16.custom.min.js"></script>
		<script type="text/javascript" src="media/js/jquery.infieldlabel.min.js"></script>
		<script type="text/javascript" src="media/js/mainScript.js"></script>
		
		<script type="text/javascript" src="media/shadowbox/shadowbox.js"></script>
		<script type="text/javascript">
			Shadowbox.init();
		</script>
    </body>
</html>